﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace NhapHangQuangChau.Controllers
{
    public class DefaultController : Controller
    {
        //
        // GET: /Default/

        public ActionResult Index()
        {
            ViewBag.PageType = "Index";
            return View();
        }

        public ActionResult About()
        {
            ViewBag.PageType = "About";
            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.PageType = "Contact";
            return View();
        }

        public ActionResult Register()
        {
            ViewBag.PageType = "Register";
            return View();
        }

        public ActionResult EditInfo()
        {
            ViewBag.PageType = "EditInfo";
            return View();
        }

        public ActionResult AccInfo()
        {
            ViewBag.PageType = "AccInfo";
            return View();
        }

        public ActionResult ManaCart(int p=0)
        {
            ViewBag.PageType = "ManaCart";
            ViewBag.p = p;
            return View();
        }               

        public ActionResult ChangePassword()
        {
            ViewBag.PageType = "ChangePassword";
            return View();
        }

        public ActionResult TutorialBook()
        {
            ViewBag.PageType = "TutorialBook";
            return View();
        }


        public ActionResult News(int p = 0, int id = 0)
        {
            ViewBag.PageType = "News";
            ViewBag.p = p;
            ViewBag.id = id;
            return View();
        }

        public ActionResult Cart() {
            ViewBag.PageType = "Cart";
            return View();
        }

        public ActionResult Product(int p = 0, int id = 0)
        {
            ViewBag.PageType = "Product";
            ViewBag.p = p;
            ViewBag.id = id;
            return View();
        }
       
    }
}
